#pragma once


class CritSectionLocker
{
public:
	CritSectionLocker();
	~CritSectionLocker();

	void lock();
	void unlock();

private:
	CRITICAL_SECTION critSection;
};

class ScoupedLocker
{
public:
	ScoupedLocker(const CritSectionLocker &critSectionLocker);
	~ScoupedLocker();

private:
	CritSectionLocker &locker;
};
